<?php


namespace app\api\validate;


use think\Validate;

class BindMobileValidate extends Validate
{
    protected $rule = [
        'wxapp_openid' => 'require',
        'mobile' => 'require|regex:^1[3,4,5,6,7,8,9][0-9]{9}$',
//        'code' => 'require',
    ];

    protected $message = [
        'wxapp_openid.require' => 'openid不能为空',
        'mobile.require' => '手机号不能为空',
        'mobile.regex' => '手机号格式不正确',
//        'code.require' => '验证码不能为空',
    ];
}